cmake_minimum_required(VERSION 3.22.1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")

include_directories(include util player decode)


message(" test ${CMAKE_SOURCE_DIR}")
message(" test ${CMAKE_ANDROID_ARCH_ABI}")
project("aeditor")
set(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -L${CMAKE_SOURCE_DIR}/libs/${CMAKE_ANDROID_ARCH_ABI}")
message(" test ${CMAKE_CXX_FLAGS}")

file(GLOB src-files
        Frame/*.cpp
        util/*.cpp
        player/*.cpp
        decode/*.cpp
        splayer.cpp)


link_directories(${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI})

add_library(${CMAKE_PROJECT_NAME} SHARED ${src-files})



target_link_libraries(${CMAKE_PROJECT_NAME}
        mediandk
        android
        avcodec
        avfilter
        avformat
        avutil
        swresample
        swscale
        EGL
        GLESv3
        OpenSLES
        log)